<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var email='zhangsan@sina.com'
        var id='100233186012057663'
        var intPos=email.indexOf('@',0)
        var intPos_2=email.indexOf('.',0)
        var names=email.slice(0,intPos)
        console.log(names)
        var busi=email.slice(intPos+1,intPos_2)
        console.log(busi)
        var year=id.slice(6,10)
        var month=id.slice(10,12)
        var day=id.slice(12,14)
        console.log(year+'年'+month+'月'+day+'日')
    </script>
</body>
</html>